package utils

import "github.com/gin-gonic/gin"

func GetUserId(c *gin.Context) uint {
	return c.GetUint("user_id")
}

func ToUint(str string) uint {
	return uint(StrToInt(str))
}
